<?php
class PaymentProcess extends Payment{
	
	protected $_processInfo;
	protected $_paymentData;
	
	public function __construct($paymetnData = null){
		if ($paymetnData instanceof PaymentInfo){
			$this->setPaymentCode($paymetnData->getPaymentCode());			
			$this->setPaymentInfo($paymetnData);
		}
		
	}
	
	public function setPaymentInfo($paymetnData){
		$this->_paymentData = $paymetnData;
		return $this;
	}

	public function getPaymentInfo(){
		return $this->_paymentData;
	}

	public function setProcessInfo($processInfo){
		$this->_processInfo = $processInfo;
		return $this;
	}
	
	public function getProcessInfo(){
		return $this->_processInfo;
	}
	
	public function __get($name){
		return $this->_paymentData->$name;
	}
}